2020-2021 Sunseeker Telemetry and Lighting System
gpio_ex3_softwarePoll.c File Reference
#include "driverlib.h"
#include "Board.h"

Go to the source code of this file.

Functions

void main (void)
 

Function Documentation

◆ main()

void main ( void  )

Software Poll S1, Set LED1 if S1 =1

Poll S1 in a loop, if hi LED1 is set, if low, LED1 reset. ACLK = n/a, MCLK = SMCLK = default DCO

     MSP430FR2xx_4xx Board
      -----------------
  /|\|                 |
   | |                 |
   --|RST              |
     |                 |
S1-->|                 |-->LED1

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • None

Definition at line 60 of file gpio_ex3_softwarePoll.c.

References GPIO_setOutputHighOnPin(), and GPIO_setOutputLowOnPin().